<@master template="master/master-loan" title="绩效核算">
	<div class="detaiTab  detaiTab1">
		<form action="/reward/addAndSaveStaff"  class="action-ajax-form action-ajax-form-valid"  method="post"  enctype="multipart/form-data">
			<div class="detailsBox clearfix">
				<div class="openBox">
					<h3 class="mt20">
						<i class="jtIco"></i>新增考核人员信息
					</h3>
					<div class="detaiTab">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tbody>
								<tr>
									<td align="right" class="bg" width="18%">姓名:</td>
									<td colspan="3">
										<@autocomplete url="/reward/likeUserName?userName=" 
											name="userName" id="userName" value=""
											action\-autocomplete\-callback\-function="fixname" 
											hideIdName="employeeNo"
											hideIdValue=""
											/>(联想)
										<span style="color: red;">*</span>
										<input type="hidden" name="userNo" id="userNo" value="" class="tabInp" />
										<span id="operatorNoErorr" style="color: red;"></span>
									</td>
									<td align="right" class="bg" width="18%">省区:</td>
									<td colspan="3">
										<select name="provinceCode" id="provinceCode">
											<option name="defaultProvinceName" id="defaultProvinceName" value="">请选择</option>
											<#list provinces as prov>
												<option value="${prov.code}|${prov.name}">${prov.name}</option>								
											</#list>
										</select>
									</td>
								</tr>
								<tr>
									<td align="right" class="bg" width="18%">入职时间:</td>
									<td colspan="3"><@date name="joinDate" id="joinDate" class="tabInp" type="text"/></td>
									<td align="right" class="bg" width="18%">考核月份:</td>
									<td colspan="3"><input name="assesMonth" id="assesMonth" class="tabInp" type="text" readonly="readonly"  /></td>
								</tr>
								<tr>
									<td align="right" class="bg" width="18%">省区所在梯队:</td>
									<td colspan="3">
										<input name="provinceEchelon" id="provinceEchelon" class="tabInp action-valid-field" type="text"  data-action-valid-rule="maxlength:3;" />
									</td>
									<td align="right" class="bg" width="18%">起提点(万元):</td>
									<td colspan="3">
										<input name="startRoyaltyPoint" id="startRoyaltyPoint" class="tabInp action-valid-field" type="text" data-action-valid-rule="number;" />
										<span class="action-field-error" for="loanRate" style="color:red;"></span>
									</td>
								</tr>
								<tr>
									<td align="right" class="bg" width="18%">考核类型:</td>
									<td colspan="3">
										<select data-action-valid-rule="required;" name="evaluateType" id="evaluateType"
												class="tabInp action-change-value action-valid-field" 
												data-url="/reward/updateAssesPro" data-action-html="#assesProHtml"
												data-action-valid-msg-required="考核类型不能为空！">
											<option>请选择</option>
											<#list dics as dic>
												<option value="${dic.no}">${dic.name}</option>	
											</#list>
										</select>
										<span style="color:red;">*</span>
									</td>
									<td align="right" class="bg" width="18%">考核方案:</td>
									<td colspan="3" id="assesProHtml" class="action-ajax-load">
										<select dataSouce="los" name="evaluateScheme" id="evaluateScheme" 
										    class="action-valid-field" data-action-valid-rule="required;" data-action-valid-msg-required="考核方案不能为空！" >
										    <option>请选择</option>
										</select>
										<span style="color:red;">*</span>
									</td>
								</tr>
								<tr>
									<td align="right" class="bg action-valid-field" width="15%">当月考核系数:</td>
									<td colspan="3">
										<input name="evaluateCoefficient" id="evaluateCoefficient"class="tabInp action-valid-field" type="text" value="" data-action-valid-rule="number;"/>
									</td>
									<td>
										<input name="userCode" id="userCode" type="hidden" value=""/>
										<input name="postCode" id="postCode" type="hidden" value=""/>
										<input name="postName" id="postName" type="hidden" value=""/>
										<input name="userStatus" id="userStatus" type="hidden" value=""/>
										<input name="isDimission" id="isDimission" type="hidden" value=""/>
									</td>
								</tr>
								<tr>
									<td class="bg"></td>
									<td colspan="3">
										<@permission permissionName="rewardAddSavePerInfo">
										<input type="submit" value="保存" class="btn_auto_30 btn_blue"/>
										</@permission>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</form>
	</div>

<script type="text/javascript">
	function fixname(data) {
		$("#userNo").val(data[0]);
		$("#joinDate").val(data[3]);
		$("#assesMonth").val(data[4]);
		if(data[2] == null){
			$("#defaultProvinceName").text("请选择");
			$("#defaultProvinceName").val("请选择");
		}else{
			$("#defaultProvinceName").text(data[2]);
			$("#defaultProvinceName").val(data[5]+"|"+data[2]);
		}
			
		
		$("#userCode").val(data[6]);
		$("#postCode").val(data[7]);
		$("#postName").val(data[8]);
		$("#userStatus").val(data[9]);
		$("#isDimission").val(data[10]);
	}
</script>
</@master>
